
Research
Using Trusted Protocols Against You: Gmail as a C2 Mechanism
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.
serialize-json
Advanced tools
A serialize algorithm for JSON
Support serialize JSON to Buffer, and deserialize Buffer to JSON
Inspire by jsonpack, it can compress to 55% of original size if the data has a recursive structure
$ npm install serialize-json --save
Node.js >= 4.0.0 required
let json = {
a: 'a',
b: 123,
c: 123.456,
d: [ 1, 2, 3 ],
e: true,
f: null,
g: undefined,
h: new Date(),
i: new Buffer('this is a buffer'),
j: new Error('this is a error'),
};
const buf = JSON.encode(json);
const result = JSON.decode(buf);
assert.deepEqual(result, json);
encode(json)
serialize a json objectdecode(buf)
deserialize a buffer to jsonFAQs
A serialize algorithm for JSON
We found that serialize-json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.